import urllib.request as rq

response = rq.Request("http://blog.csdn.net/qq_37248504/article/details/106932085")
html = rq.urlopen(response)
result = html.read()
print(result)
with open("test.txt", "wb") as f:
    f.write(result)
